package com.settlement.system.converter;

import com.alibaba.excel.converters.integer.IntegerStringConverter;
import com.alibaba.excel.metadata.GlobalConfiguration;
import com.alibaba.excel.metadata.data.WriteCellData;
import com.alibaba.excel.metadata.property.ExcelContentProperty;

/**
 * @author author
 */
public class TblRefundAuditBillConvert extends IntegerStringConverter {

    @Override
    public WriteCellData convertToExcelData(Integer value, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) {
        if(value != null){
            if(value == 0){
                return new WriteCellData("");
            }
            if (value == 1){
                return new WriteCellData("是");
            }
        }
        return new WriteCellData("");
    }

}
